package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/4/3 16:46
 * @since v1.0
 */
@Getter
public enum LinkAddOperationFlagEnum {
    EDIT(1,"enum.linkAddOperationFlag.attr.edit"),
    DEL(2,"enum.linkAddOperationFlag.attr.del")
    ;
    private Integer code;
    private String attr;

    LinkAddOperationFlagEnum(Integer code, String attr) {
        this.code = code;
        this.attr = attr;
    }

    public String getAttr() {
        return I18nMessageUtil.getMessage(attr);
    }
}
